// 轮播图
.opus_imgs {
    width: 100%;
    height: 600rpx;
    position: relative;
    margin-bottom: 35rpx;


    swiper {
        height: 600rpx;
        position: relative;

        swiper-item {
            position: relative;
            display: flex;
            justify-items: center;
            flex-flow: row wrap;

            image {
                width: 100%;
                height: 100%;
            }


        }


    }

    .custom-pagination {
        position: absolute;
        /* 绝对定位 */
        bottom: -35rpx;
        /* 根据需要调整位置 */
        left: 50%;
        /* 水平居中 */
        transform: translateX(-50%);
        /* 水平居中 */
        display: flex;
        /* 使用flex布局 */
        justify-content: center;


        /* 水平居中对齐 */
        .pagination-bullet {
            width: 10rpx;
            /* 指示点的宽度 */
            height: 10rpx;
            /* 指示点的高度 */
            background: #ccc;
            /* 指示点的背景颜色 */
            border-radius: 50%;
            /* 指示点的形状 */
            margin: 0 6rpx;
            /* 指示点之间的间距 */
            transition: all 0.5s;
            // 变化的过度时间
        }

        .pagination-bullet.active {
            width: 30rpx;
            /* 选中时的指示点宽度 */
            height: 8rpx;
            /* 选中时的指示点高度 */
            background: #fa6650;
            /* 选中时的指示点背景颜色 */
            border-radius: 4px;
            /* 选中时的指示点形状 */
        }
    }
}

// 标题
.opus_title {
    width: 680rpx;
    font-size: 35rpx;
    margin: 20rpx auto;
}

// 标签
.opus_tags {
    width: 680rpx;
    margin: 30rpx auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;

    .tags_item {
        background-color: #edecec;
        height: 45rpx;
        line-height: 45rpx;
        text-align: center;
        font-size: 25rpx;
        padding: 0 15rpx;
        margin: 0 20rpx 20rpx 0;
        border-radius: 15rpx;
    }
}

// 作者信息
.author_info {

    display: flex;
    width: 680rpx;
    height: 120rpx;
    margin: 40rpx auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .info_l {
        width: 500rpx;
        display: flex;
        justify-content: row;
        align-items: center;

        .profile_photo {
            height: 100rpx;
            width: 100rpx;
            background-color: #ccc;
            border-radius: 50rpx;
            margin-right: 30rpx;

            image {
                height: 100rpx;
                width: 100rpx;
                border-radius: 50rpx;

            }
        }

        .name_date {
            width: 400rpx;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .author_name {
                font-weight: 700;
                font-size: 35rpx;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .author_date {
                margin-top: 10rpx;
                font-size: 25rpx;
            }
        }
    }

    .info_r {
        width: 150rpx;
        height: 70rpx;

        .icon {
            width: 150rpx;
            height: 70rpx;
            line-height: 70rpx;
            font-size: 40rpx;
            text-align: center;
        }

        .follow {
            width: 150rpx;
            height: 70rpx;
            font-size: 30rpx;
            line-height: 70rpx;
            background-color: #fa6d51;
            color: #fff;
            box-shadow: 0 0 20rpx rgba(250, 109, 81, 0.3);
            text-align: center;
            border-radius: 20rpx;
        }

        .isFollow {
            background-color: #ccc !important;
            box-shadow: 0 0 20rpx rgba(204, 204, 204, 0.3) !important;
        }

    }
}

// 点赞展示
.liking_show {
    width: 680rpx;
    margin: 0 auto 10rpx;
    border-top: 1px solid #ccc;

    height: 100rpx;
    padding-top: 10rpx;
    display: flex;
    flex-direction: row;
    align-items: center;

    .profile_photos {
        height: 80rpx;
        display: flex;
        flex-direction: row;
        align-items: center;

        margin-right: 50rpx;

        .photo_item {
            width: 70rpx;
            height: 70rpx;
            border: 2px solid #fff;
            margin-right: -20rpx;
            border-radius: 35rpx;

            image {
                width: 100%;
                height: 100%;
                border-radius: 35rpx;
                background-color: #ccc;

            }
        }
    }


}

// 作品来源（菜谱信息）
.menu_source_box {
    width: 680rpx;
    margin: 0 auto;

    .menu_source_h {
        font-weight: 700;
        font-size: 40rpx;
        margin-bottom: 15rpx;
    }

    .menu_source_body {
        overflow: hidden;
        box-shadow: 0 0 10rpx rgba(0, 0, 102, 0.3);
        border-radius: 40rpx;
        display: flex;
        flex-flow: row nowrap;
        height: 200rpx;
        justify-content: flex-start;
        margin-bottom: 30rpx;

        .menu_img {
            width: 200rpx;
            height: 200rpx;
            margin-right: 30rpx;


            image {
                border-radius: 40rpx 0 0 40rpx;
                width: 100%;
                height: 100%;
                background-color: #ccc;
            }
        }

        .menu_info {
            width: 460rpx;
            text-align: left;
            display: flex;
            flex-flow: column nowrap;
            justify-content: space-around;
            white-space: nowrap;

            .title {
                font-size: 36rpx;
                font-weight: 700;

                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }

            .tag {

                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                font-size: 25rpx;
            }

            .menu_data {
                font-size: 25rpx;


                .grade {
                    margin-right: 30rpx;
                }
            }

            .author_name {
                font-size: 30rpx;
                color: #ed8978;
            }
        }
    }
}


// 底部导航栏
.nav_bottom {
    width: 100%;
    height: 160rpx;
    position: fixed;
    bottom: 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    font-size: 35rpx;
    background-color: #fff;
    z-index: 2;

    .nav_item {
        box-sizing: border-box;
        margin-top: 10rpx;
        height: 90rpx;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        text-align: center;
        line-height: 90rpx;
        margin: 0 35rpx;
        padding: 0 40rpx;
        border-radius: 50rpx;




    }

    .share {
        background-color: #000;
        color: #fff;
    }

    .liking {
        box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.4);

        .icon {
            font-size: 50rpx;
            margin-right: 10rpx;
        }

        .icon.active {
            color: #f97966;
        }
    }
}

// 设置弹窗

.setting_model::before {
    position: absolute;
    z-index: 2;
    content: "";
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;

}

.setting_model.hide {
    opacity: 0;
    height: 0;
}

.setting_model {
    position: fixed;
    bottom: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.7s;

    .setting_content.hide {
        opacity: 0;
        height: 0;
    }

    .setting_content {
        position: absolute;
        z-index: 8;
        bottom: 0;
        width: 100%;
        height: 220rpx;
        background-color: #e4e2e2;
        border-radius: 30rpx 30rpx 0 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        font-size: 35rpx;
        transition: all 0.5s ease-in-out;

        .setting_choose {
            border-radius: 30rpx 30rpx 0 0;
            width: 100%;
            background-color: #fff;
            height: 80rpx;
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 80rpx;


            .setting_btn {
                height: 80rpx;
            }

            .other_account {
                height: 80rpx;
                width: 100%;
                text-align: center;
                box-sizing: border-box;
                border-top: 2rpx solid #ccc;
            }
        }

        .close_model {
            box-sizing: border-box;
            width: 100%;
            height: 130rpx;
            background-color: #fff;
            text-align: center;
            padding-top: 20rpx;


        }

    }

}

// 防止底部导航栏遮挡页面内容
.box {
    width: 680rpx;
    height: 200rpx;
    margin: o auto;
    background-color: #fff;
}